#sh ./deploy.sh [commit 内容]


# 编译为静态文件
#echo "npm run build"
#npm run build
commit=$1

# 编译代码
echo "执行命令：tsc"
tsc

# 保存所有的修改
echo "执行命令：git add ."
git add .

# 把修改的文件提交
echo "执行命令：commit -m $commit"
git commit -m $commit

# 拉取最新代码
echo "执行命令：git pull origin master"
git pull origin master

# push
echo "执行命令：git push origin master"
git push origin master